package com.hc.comm.utils;

public class WechatConfig {

	//微信公众号 appid
	public final static String Wechat_Public_Appid = "wxdbd406cd8e4500b1";
	
	public final static String Wechat_Public_Secret = "b2a0bb765dec872c8f9e478ff6ab63d1";
	
	
	public final static String Wechat_Redirect_Url = "http%3A%2F%2Fwww.91solver.com%2Ffe_mobile%2FwechatCallback.html";

	
	public final static String Wechat_AccessTokenUrl = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=%s&secret=%s&code=%s&grant_type=authorization_code";

	
	public static String getWechatAccessTokenUrl(String code) {
		
		return String.format(Wechat_AccessTokenUrl, Wechat_Public_Appid, Wechat_Public_Secret, code);
	}
	
}
